package cn.fl.capital.service;

import cmm.user.facade.system.condition.SysUsrFunAuthRQueryCondition;
import cn.fl.capital.vo.CapFundSummaryVO;
import cn.fl.capital.condition.CapFundSummaryQueryCondition;
import cn.fl.capital.dto.CapFundSummaryDTO;
import cmm.mid.core.framework.page.DataResultVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.cmm.base.framework.constant.BaseExceptionConstant;
import cn.fl.export.condition.CapFundSummaryExportCondition;
import com.alibaba.fastjson.JSONArray;

import java.util.List;

/**
 * @Description: 客户资金汇总表 客户端服务层接口
 * 业务层方法名称前缀：
 * 新增：add*
 * 删除：remove*
 * 修改：modify*
 * 批量：batch*
 * 查询对象：select* get*
 * 查询集合：search*
 */
public interface ICapFundSummaryService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public CapFundSummaryVO selectById(Long id) throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(CapFundSummaryVO entity) throws BaseException;
    
    /**
     * 批量删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids) throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(CapFundSummaryVO entity) throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page) throws BaseException;

	/*******************************
	 * 分页查询罚息管理列表
	 * @param page
	 * @return
	 *******************************/
	public Pager searchFineListPage(Pager page) throws BaseException;

	/*******************************
	 * 分页查询逾期催收列表
	 * @param page
	 * @return
	 *******************************/
	public Pager searchOvdListPage(Pager page) throws BaseException;

	/***************************
	 * 查询逾期金额汇总
	 * @param condition
	 * @return
	 ***************************/
	public CapFundSummaryVO selectOvdAmtSummary(CapFundSummaryQueryCondition condition) throws BaseException;
    
    /**
     * 根据条件查询所有
     * @param condition
     * @return
     */
    public List<CapFundSummaryVO> searchList(CapFundSummaryQueryCondition condition) throws BaseException;
    
    /**
     * 批量导出逾期数据
     * @param condition
     * @return
     * @throws BaseException
     */
    public DataResultVO exportOverdueList(CapFundSummaryExportCondition condition) throws BaseException;

	JSONArray selectRskUserList(SysUsrFunAuthRQueryCondition qc);
}
